package com.stylefeng.guns.modular.bigSrceen.model;

public class MapData implements Comparable{
	
	private String name;
	private Integer value;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getValue() {
		return value;
	}
	public void setValue(Integer value) {
		this.value = value;
	}
	@Override
	public int compareTo(Object o) {
		MapData map=(MapData) o;
        if(this.value>map.value){
            return 1;
        }
        else if(this.value<map.value){
            return -1;
        }else{
            return 0;
        }
	}
}